package com.cares.event.constant;

/**
 * 流程图xml文件各节点定义
 * @author xuji
 *<process xmlns='http://jbpm.org/4.4/jpdl'>
  <start name='start' g='422,0,48,48'>
    <transition to='提交质检记录'/>
  </start>
  <end name='end' g='432,439,48,48'/>
  <human g='402,93,90,50' name='提交质检记录'>
    <transition to='质检处理'/>
  </human>
  <human g='618,94,90,50' name='质检处理'>
    <transition to='fork 1'/>
  </human>
  <fork g='640,184,48,48' name='fork 1'>
    <transition to='发通知书' g='663,386:-100,-92'/>
    <transition name='未通过' to='修改质检文本'/>
  </fork>
  <human g='411,359,90,50' name='发通知书'>
    <transition to='end'/>
  </human>
  <human g='404,183,90,50' name='修改质检文本'>
    <transition to='fork 2'/>
  </human>
  <fork g='427,289,48,48' name='fork 2'>
    <transition to='处长报批处理'/>
    <transition name='to 提交质检记录' g='366,312;365,118:82,0' to='提交质检记录'/>
  </fork>
  <human g='230,288,90,50' name='处长报批处理'>
    <transition to='decision 1'/>
  </human>
  <decision g='251,184,48,48' name='decision 1'>
    <transition to='修改质检文本'/>
    <transition name='上报主任' to='主任报批处理' g='-24,-6'/>
  </decision>
  <human g='76,183,90,50' name='主任报批处理'>
    <transition to='提交质检记录' g='120,118:164,45'/>
  </human>
</process>

 */

/**
 * <process xmlns='http://jbpm.org/4.4/jpdl'>
  <start g='77,118,48,48' name='start 1'>
    <transition to='fork 1'/>
  </start>
  <auto g='341,49,90,50' name='auto 1'>
    <exceptionMethod>sdfsdf</exceptionMethod>
    <storeName>sdfsdf</storeName>
    <transition to='join 1'/>
  </auto>
  <auto g='338,135,90,50' name='auto 2'>
    <transition to='join 1'/>
  </auto>
  <auto g='330,221,90,50' name='auto 3'>
    <transition to='join 1'/>
  </auto>
  <auto g='625,138,90,50' name='auto 4'>
    <transition to='end 1'/>
  </auto>
  <end g='738,139,48,48' name='end 1'/>
  <fork g='213,117,48,48' name='fork 1'>
    <transition to='auto 1'/>
    <transition name='to auto 2' to='auto 2'/>
    <transition name='to auto 3' to='auto 3'/>
  </fork>
  <join g='514,133,48,48' name='join 1'>
    <transition to='auto 4'/>
  </join>
</process>

 */
public class XmlNodeConstant {
	
	/**
	 * 节点通用属性——名称
	 */
	public static String NODE_ATTR_NAME = "name";
	
	/**
	 * 节点通用属性——状态
	 */
	public static String NODE_ATTR_STATE = "state";
	
	/**
	 * 节点通用属性——位置
	 */
	public static String NODE_ATTR_G = "g";
	
	/**
	 * 根节点
	 */
	public static String NODE_ROOT = "process";
	
	/**
	 * 开始节点
	 */
	public static String NODE_START = "start";
	
	/**
	 * 结束节点
	 */
	public static String NODE_END = "end";
	
	/**
	 * 流向路劲节点
	 */
	public static String NODE_TRANSITION = "transition";
	
	/**
	 * 流向路劲节点属性——目标
	 */
	public static String NODE_TRANSITION_ATTR_TO = "to";
	
	/**
	 * 自动任务节点
	 */
	public static String NODE_TASK_AUTO = "auto";
	
	/**
	 * 分叉
	 */
	public static String NODE_FORK = "fork";
	
	/**
	 * 汇聚
	 */
	public static String NODE_JOIN = "join";
	
	/**
	 * 分叉节点下的transition下的condition节点
	 */
	//public static String NODE_FORK__NODE_CONDITION= "condition";
	
	/**
	 * 分叉节点下的表达式
	 */
	//public static String NODE_FORK_CONDITION_ATTR_EXPR= "expr";
	
	/**
	 * 自动任务节点-接收的参数
	 */
	public static String NODE_TASK_AUTO_INVALUE = "invalue";
	
	/**
	 * 自动任务节点-输出的参数
	 */
	public static String NODE_TASK_AUTO_OUTVALUE = "outvalue";
	
	
	/**
	 * 自动任务节点-延时执行的时间
	 */
	public static String NODE_TASK_AUTO_LAYTIME = "laytime";
	
	/**
	 * 自动任务节点-任务参数1
	 */
	public static String NODE_TASK_AUTO_TASKPARAM1 = "taskParam1";
	
	/**
	 * 自动任务节点-任务参数2
	 */
	public static String NODE_TASK_AUTO_TASKPARAM2 = "taskParam2";
	
	/**
	 * 自动任务节点-任务参数3
	 */
	public static String NODE_TASK_AUTO_TASKPARAM3 = "taskParam3";
	
	/**
	 * 自动任务节点-任务类型
	 */
	public static String NODE_TASK_AUTO_TYPE = "type";
	
	
	/**
	 * 自动任务节点-任务类型--存储过程
	 */
	public static String NODE_TASK_AUTO_TYPE_PROCEDURE = "procedure";
	
	/**
	 * 自动任务节点-任务类型--JAVA类
	 */
	public static String NODE_TASK_AUTO_TYPE_CLASS = "class";
	

	/**
	 * 自动任务节点-属性--普通
	 */
	public static String NODE_TASK_ATTR_NOMAL = "nomal";
	
	/**
	 * 自动任务节点-属性--并发任务
	 */
	public static String NODE_TASK_ATTR_CONCURRENT = "concurrent";
	
	/**
	 * 自动任务节点-属性--并发后接任务
	 */
	public static String NODE_TASK_ATTR_MANYTOONE = "manytoone";
	
	
	
}
